$(function() {
	$("#left").load("../common/gover-left.html");
	my_vue = new Vue({
		el: '#vue_info',
		data: {

		},
		methods: {

			changeOp: function() {
				window.location = "scannerIndex.html"
			},
			consult: function() {
				window.location = "readIdentityCard.html"
			},
			confirmData: function() {
				var data = $("#myinput").val();
				showRedMsg("", "请输入您要查询的告知单号")
				if(data != '' && data != null) {
					if(data.trim() != '') {
						window.location.href = "scannerResult.html?preCode="+data;
					} else {
						showRedMsg("", "请输入您要查询的告知单号");
					}
				} else {
					showRedMsg("", "请输入您要查询的告知单号")
				}
			},
			scannerExitProcess: function(type) {
				op = type;
				$.showConfirm({
					'title': '',
					'data': '',
					'content': '是否确认离开当前界面？',
					"showClose": false,
					"sureLabel": "取消",
					"cancelLabel": "确定",
					'cancel': this.closeCallBack
				});
			},
			closeCallBack: function() {
				if(op == "index") {
					op = "";
					this.toIndex();
				} else if(op == "zhengwu") {
					op = "";
					this.toZhenwu();
				} else if(op == "bianmin") {
					op = "";
					this.toBianmin();
				} else if(op == "space") {
					op = "";
					this.toSpace();
				}
			},
			toIndex: function() {
				window.location = "index.html"
			},
			toZhenwu: function() {
				window.location = "readIdentityCard.html"
			},
			exitAttendTo: function() {
				$.openDialog({
					'title': '',
					"showClose": false,
					'width': 824,
					'height': 460,
					'url': 'selfHelpExitChoose.html'
				});
			}
		},
		ready: function() {
			//初始化获得总页面数和列表数据

		}
	});
})